projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7a78d
)
* src/pgtkselect.c: Avoid Glib assertion warnings
author
Jindřich Makovička
<makovick@gmail.com>
Sun, 30 May 2021 09:40:45 +0000
(11:40 +0200)
committer
Yuuki Harano
<masm+github@masm11.me>
Tue, 8 Jun 2021 15:28:33 +0000
(
00:28
+0900)
Do not call g_object_get_qdata, when the clipboard has no owner,
and obj is NULL. Just return Qnil immediately.
src/pgtkselect.c
patch
|
blob
|
history
diff --git
a/src/pgtkselect.c
b/src/pgtkselect.c
index 8ab74744f398ce04c8354c4f380b50441e8f27ad..447c839f4599147bdeaf64f70f7bf0f1f7c7d74f 100644
(file)
--- a/
src/pgtkselect.c
+++ b/
src/pgtkselect.c
@@
-518,7
+518,7
@@
On Nextstep, TERMINAL is unused. */)
obj = gtk_clipboard_get_owner (cb);
- return g_object_get_qdata (obj, quark_data) != NULL ? Qt : Qnil;
+ return
obj &&
g_object_get_qdata (obj, quark_data) != NULL ? Qt : Qnil;
}